package com.zy;

import com.zy.utils.FruitFactoryBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program: maven3
 * @description: 工厂bean_简单工厂
 * @author: zy
 * @create: 2025-09-09 11:21
 */
@Configuration
public class AppConfig3_factoryBean {

    @Bean   // spring 托管的是工厂，而不是水果.
    public FruitFactoryBean fruitFactoryBean(){
        return new FruitFactoryBean();
    }
}
